home
***
CD-ROM
|
disk
|
FTP
|
other
***
search
/
kermit.columbia.edu
/
kermit.columbia.edu.tar
/
kermit.columbia.edu
/
newsgroups
/
misc.20031118-20041115
/
000019_fdc@columbia.edu_Wed Nov 26 10:29:34 2003.msg
< prev
next >
Wrap
Internet Message Format
|
2004-11-14
|
1KB
Path: newsmaster.cc.columbia.edu!not-for-mail
From: Frank da Cruz <fdc@columbia.edu>
Newsgroups: comp.protocols.kermit.misc
Subject: Re: Quick Question on switch statement and :1, :2
Date: 26 Nov 2003 15:15:31 GMT
Organization: Columbia University
Lines: 17
Message-ID: <slrnbs9gsi.c9g.fdc@sesame.cc.columbia.edu>
References: <f0bb0f39.0311260516.356db920@posting.google.com>
Reply-To: fdc@columbia.edu
NNTP-Posting-Host: sesame.cc.columbia.edu
X-Trace: newsmaster.cc.columbia.edu 1069859731 23660 128.59.59.56 (26 Nov 2003 15:15:31 GMT)
X-Complaints-To: postmaster@columbia.edu
NNTP-Posting-Date: 26 Nov 2003 15:15:31 GMT
User-Agent: slrn/0.9.7.4 (SunOS)
Xref: newsmaster.cc.columbia.edu comp.protocols.kermit.misc:14695
In article <f0bb0f39.0311260516.356db920@posting.google.com>,
newexpectuser wrote:
: I am using the following and was wondering if the :1 and :2 are just
: labels to clarify code. I am guessing that the "if < \v(input).." says
: if the return code of the minput statement is a 1, to exit with a
: return code of 1, otherwise check continue ?
:
Read the manual or type "help switch" to find out how the SWITCH command
works. Type "help xxx" to find out how any command xxx works.
: If that is true, then I think the :1 and :2 are nothing more than
: labels and have no affect on the script itself ?
:
The SWITCH command is explained on page 385 of "Using C-Kermit". You
can't learn a programming language without a manual.
- Frank